<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
if($_RQ['op']=='basic'){
	$return['item']=$this->plugin_setting('setting');
	$return['item']['url']=custom_url('jy_exchange/index/',true);
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('setting',$postdata);
		exi('设置成功');
	}
	
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',	
		'edit_tab'=>true,
		'edit'=>array(
			array('name'=>'','title'=>'兑换防刷','name1'=>'mistake','title1'=>'连续输错','unit1'=>'次兑换码','name1'=>'freeze','title2'=>'冻结用户兑换资格','unit2'=>'天','type'=>'string_two'),
			array('name'=>'allmax','title'=>'每个用户每天所有兑换任务限兑次数','type'=>'string',),
			array('name'=>'onemax','title'=>'每个用户每天单个兑换任务限兑次数','type'=>'string'),
			array('name'=>'isfollow','title'=>'需要关注','type'=>'switch'),	
			array('name'=>'ewm','title'=>'关注二维码','type'=>'image'),	
			array('name'=>'logo','title'=>'关注LOGO','type'=>'image'),
			array('name'=>'followtitle','title'=>'关注标题','type'=>'string'),
			array('name'=>'followdesc','title'=>'关注描述','type'=>'string'),
		)
	);
	$return['htmls']=$htmls;
	exi($return);
}

